Optimal. Leaf size=193 \[ \frac {10 a b^4 \tan ^{-1}\left (\frac {b+a \tan \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a^2-b^2}}\right )}{\left (a^2-b^2\right )^{7/2} d}+\frac {b \sec ^3(c+d x)}{\left (a^2-b^2\right ) d (a+b \sin (c+d x))}-\frac {\sec ^3(c+d x) \left (5 a b-\left (a^2+4 b^2\right ) \sin (c+d x)\right )}{3 \left (a^2-b^2\right )^2 d}+\frac {\sec (c+d x) \left (15 a b^3+\left (2 a^4-9 a^2 b^2-8 b^4\right ) \sin (c+d x)\right )}{3 \left (a^2-b^2\right )^3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.24, antiderivative size = 193, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {2773, 2945, 12,
2739, 632, 210} \begin {gather*} \frac {10 a b^4 \text {ArcTan}\left (\frac {a \tan \left (\frac {1}{2} (c+d x)\right )+b}{\sqrt {a^2-b^2}}\right )}{d \left (a^2-b^2\right )^{7/2}}+\frac {b \sec ^3(c+d x)}{d \left (a^2-b^2\right ) (a+b \sin (c+d x))}-\frac {\sec ^3(c+d x) \left (5 a b-\left (a^2+4 b^2\right ) \sin (c+d x)\right )}{3 d \left (a^2-b^2\right )^2}+\frac {\sec (c+d x) \left (\left (2 a^4-9 a^2 b^2-8 b^4\right ) \sin (c+d x)+15 a b^3\right )}{3 d \left (a^2-b^2\right )^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 210
Rule 632
Rule 2739
Rule 2773
Rule 2945
Rubi steps
\begin {align*} \int \frac {\sec ^4(c+d x)}{(a+b \sin (c+d x))^2} \, dx &=\frac {b \sec ^3(c+d x)}{\left (a^2-b^2\right ) d (a+b \sin (c+d x))}+\frac {\int \frac {\sec ^4(c+d x) (-a+4 b \sin (c+d x))}{a+b \sin (c+d x)} \, dx}{-a^2+b^2}\\ &=\frac {b \sec ^3(c+d x)}{\left (a^2-b^2\right ) d (a+b \sin (c+d x))}-\frac {\sec ^3(c+d x) \left (5 a b-\left (a^2+4 b^2\right ) \sin (c+d x)\right )}{3 \left (a^2-b^2\right )^2 d}+\frac {\int \frac {\sec ^2(c+d x) \left (a \left (2 a^2-7 b^2\right )+2 b \left (a^2+4 b^2\right ) \sin (c+d x)\right )}{a+b \sin (c+d x)} \, dx}{3 \left (a^2-b^2\right )^2}\\ &=\frac {b \sec ^3(c+d x)}{\left (a^2-b^2\right ) d (a+b \sin (c+d x))}-\frac {\sec ^3(c+d x) \left (5 a b-\left (a^2+4 b^2\right ) \sin (c+d x)\right )}{3 \left (a^2-b^2\right )^2 d}+\frac {\sec (c+d x) \left (15 a b^3+\left (2 a^4-9 a^2 b^2-8 b^4\right ) \sin (c+d x)\right )}{3 \left (a^2-b^2\right )^3 d}-\frac {\int -\frac {15 a b^4}{a+b \sin (c+d x)} \, dx}{3 \left (a^2-b^2\right )^3}\\ &=\frac {b \sec ^3(c+d x)}{\left (a^2-b^2\right ) d (a+b \sin (c+d x))}-\frac {\sec ^3(c+d x) \left (5 a b-\left (a^2+4 b^2\right ) \sin (c+d x)\right )}{3 \left (a^2-b^2\right )^2 d}+\frac {\sec (c+d x) \left (15 a b^3+\left (2 a^4-9 a^2 b^2-8 b^4\right ) \sin (c+d x)\right )}{3 \left (a^2-b^2\right )^3 d}+\frac {\left (5 a b^4\right ) \int \frac {1}{a+b \sin (c+d x)} \, dx}{\left (a^2-b^2\right )^3}\\ &=\frac {b \sec ^3(c+d x)}{\left (a^2-b^2\right ) d (a+b \sin (c+d x))}-\frac {\sec ^3(c+d x) \left (5 a b-\left (a^2+4 b^2\right ) \sin (c+d x)\right )}{3 \left (a^2-b^2\right )^2 d}+\frac {\sec (c+d x) \left (15 a b^3+\left (2 a^4-9 a^2 b^2-8 b^4\right ) \sin (c+d x)\right )}{3 \left (a^2-b^2\right )^3 d}+\frac {\left (10 a b^4\right ) \text {Subst}\left (\int \frac {1}{a+2 b x+a x^2} \, dx,x,\tan \left (\frac {1}{2} (c+d x)\right )\right )}{\left (a^2-b^2\right )^3 d}\\ &=\frac {b \sec ^3(c+d x)}{\left (a^2-b^2\right ) d (a+b \sin (c+d x))}-\frac {\sec ^3(c+d x) \left (5 a b-\left (a^2+4 b^2\right ) \sin (c+d x)\right )}{3 \left (a^2-b^2\right )^2 d}+\frac {\sec (c+d x) \left (15 a b^3+\left (2 a^4-9 a^2 b^2-8 b^4\right ) \sin (c+d x)\right )}{3 \left (a^2-b^2\right )^3 d}-\frac {\left (20 a b^4\right ) \text {Subst}\left (\int \frac {1}{-4 \left (a^2-b^2\right )-x^2} \, dx,x,2 b+2 a \tan \left (\frac {1}{2} (c+d x)\right )\right )}{\left (a^2-b^2\right )^3 d}\\ &=\frac {10 a b^4 \tan ^{-1}\left (\frac {b+a \tan \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a^2-b^2}}\right )}{\left (a^2-b^2\right )^{7/2} d}+\frac {b \sec ^3(c+d x)}{\left (a^2-b^2\right ) d (a+b \sin (c+d x))}-\frac {\sec ^3(c+d x) \left (5 a b-\left (a^2+4 b^2\right ) \sin (c+d x)\right )}{3 \left (a^2-b^2\right )^2 d}+\frac {\sec (c+d x) \left (15 a b^3+\left (2 a^4-9 a^2 b^2-8 b^4\right ) \sin (c+d x)\right )}{3 \left (a^2-b^2\right )^3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.86, size = 336, normalized size = 1.74 \begin {gather*} \frac {\frac {120 a b^4 \tan ^{-1}\left (\frac {b+a \tan \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a^2-b^2}}\right )}{\left (a^2-b^2\right )^{7/2}}+\frac {1}{(a+b)^2 \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )^2}+\frac {2 \sin \left (\frac {1}{2} (c+d x)\right )}{(a+b)^2 \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )^3}+\frac {4 (2 a+5 b) \sin \left (\frac {1}{2} (c+d x)\right )}{(a+b)^3 \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )}+\frac {2 \sin \left (\frac {1}{2} (c+d x)\right )}{(a-b)^2 \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )^3}-\frac {1}{(a-b)^2 \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )^2}+\frac {4 (2 a-5 b) \sin \left (\frac {1}{2} (c+d x)\right )}{(a-b)^3 \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )}+\frac {12 b^5 \cos (c+d x)}{(a-b)^3 (a+b)^3 (a+b \sin (c+d x))}}{12 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.93, size = 252, normalized size = 1.31
method | result | size |
derivativedivides | \(\frac {\frac {2 b^{4} \left (\frac {\frac {b^{2} \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{a}+b}{a \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+2 b \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+a}+\frac {5 a \arctan \left (\frac {2 a \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+2 b}{2 \sqrt {a^{2}-b^{2}}}\right )}{\sqrt {a^{2}-b^{2}}}\right )}{\left (a -b \right )^{3} \left (a +b \right )^{3}}-\frac {1}{3 \left (a -b \right )^{2} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{3}}+\frac {1}{2 \left (a -b \right )^{2} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{2}}-\frac {a -2 b}{\left (a -b \right )^{3} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}-\frac {1}{3 \left (a +b \right )^{2} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{3}}-\frac {1}{2 \left (a +b \right )^{2} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{2}}-\frac {a +2 b}{\left (a +b \right )^{3} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}}{d}\) | \(252\) |
default | \(\frac {\frac {2 b^{4} \left (\frac {\frac {b^{2} \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{a}+b}{a \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+2 b \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+a}+\frac {5 a \arctan \left (\frac {2 a \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+2 b}{2 \sqrt {a^{2}-b^{2}}}\right )}{\sqrt {a^{2}-b^{2}}}\right )}{\left (a -b \right )^{3} \left (a +b \right )^{3}}-\frac {1}{3 \left (a -b \right )^{2} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{3}}+\frac {1}{2 \left (a -b \right )^{2} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{2}}-\frac {a -2 b}{\left (a -b \right )^{3} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}-\frac {1}{3 \left (a +b \right )^{2} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{3}}-\frac {1}{2 \left (a +b \right )^{2} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{2}}-\frac {a +2 b}{\left (a +b \right )^{3} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}}{d}\) | \(252\) |
risch | \(\frac {\frac {110 i a^{2} b^{3} {\mathrm e}^{4 i \left (d x +c \right )}}{3}+\frac {32 i b^{5} {\mathrm e}^{2 i \left (d x +c \right )}}{3}+10 i a^{2} b^{3} {\mathrm e}^{6 i \left (d x +c \right )}+22 i a^{2} b^{3} {\mathrm e}^{2 i \left (d x +c \right )}+6 i a^{2} b^{3}-\frac {20 i a^{4} b \,{\mathrm e}^{4 i \left (d x +c \right )}}{3}+\frac {2 b^{4} a \,{\mathrm e}^{i \left (d x +c \right )}}{3}+12 b^{2} a^{3} {\mathrm e}^{i \left (d x +c \right )}+\frac {16 i b^{5}}{3}-8 a^{5} {\mathrm e}^{3 i \left (d x +c \right )}+10 a \,b^{4} {\mathrm e}^{7 i \left (d x +c \right )}+\frac {70 a \,b^{4} {\mathrm e}^{5 i \left (d x +c \right )}}{3}+\frac {20 a^{3} b^{2} {\mathrm e}^{5 i \left (d x +c \right )}}{3}+\frac {88 a^{3} b^{2} {\mathrm e}^{3 i \left (d x +c \right )}}{3}+\frac {26 a \,b^{4} {\mathrm e}^{3 i \left (d x +c \right )}}{3}-\frac {8 a^{5} {\mathrm e}^{i \left (d x +c \right )}}{3}-\frac {4 i a^{4} b}{3}-\frac {8 i a^{4} b \,{\mathrm e}^{2 i \left (d x +c \right )}}{3}}{\left (1+{\mathrm e}^{2 i \left (d x +c \right )}\right )^{3} \left (b \,{\mathrm e}^{2 i \left (d x +c \right )}-b +2 i a \,{\mathrm e}^{i \left (d x +c \right )}\right ) d \left (a^{4}-2 a^{2} b^{2}+b^{4}\right ) \left (a^{2}-b^{2}\right )}-\frac {5 b^{4} a \ln \left ({\mathrm e}^{i \left (d x +c \right )}+\frac {i a \sqrt {-a^{2}+b^{2}}-a^{2}+b^{2}}{b \sqrt {-a^{2}+b^{2}}}\right )}{\sqrt {-a^{2}+b^{2}}\, \left (a +b \right )^{3} \left (a -b \right )^{3} d}+\frac {5 b^{4} a \ln \left ({\mathrm e}^{i \left (d x +c \right )}+\frac {i a \sqrt {-a^{2}+b^{2}}+a^{2}-b^{2}}{b \sqrt {-a^{2}+b^{2}}}\right )}{\sqrt {-a^{2}+b^{2}}\, \left (a +b \right )^{3} \left (a -b \right )^{3} d}\) | \(504\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.39, size = 782, normalized size = 4.05 \begin {gather*} \left [-\frac {2 \, a^{6} b - 6 \, a^{4} b^{3} + 6 \, a^{2} b^{5} - 2 \, b^{7} + 2 \, {\left (2 \, a^{6} b - 11 \, a^{4} b^{3} + a^{2} b^{5} + 8 \, b^{7}\right )} \cos \left (d x + c\right )^{4} - 2 \, {\left (a^{6} b + 2 \, a^{4} b^{3} - 7 \, a^{2} b^{5} + 4 \, b^{7}\right )} \cos \left (d x + c\right )^{2} - 15 \, {\left (a b^{5} \cos \left (d x + c\right )^{3} \sin \left (d x + c\right ) + a^{2} b^{4} \cos \left (d x + c\right )^{3}\right )} \sqrt {-a^{2} + b^{2}} \log \left (-\frac {{\left (2 \, a^{2} - b^{2}\right )} \cos \left (d x + c\right )^{2} - 2 \, a b \sin \left (d x + c\right ) - a^{2} - b^{2} - 2 \, {\left (a \cos \left (d x + c\right ) \sin \left (d x + c\right ) + b \cos \left (d x + c\right )\right )} \sqrt {-a^{2} + b^{2}}}{b^{2} \cos \left (d x + c\right )^{2} - 2 \, a b \sin \left (d x + c\right ) - a^{2} - b^{2}}\right ) - 2 \, {\left (a^{7} - 3 \, a^{5} b^{2} + 3 \, a^{3} b^{4} - a b^{6} + {\left (2 \, a^{7} - 11 \, a^{5} b^{2} + 16 \, a^{3} b^{4} - 7 \, a b^{6}\right )} \cos \left (d x + c\right )^{2}\right )} \sin \left (d x + c\right )}{6 \, {\left ({\left (a^{8} b - 4 \, a^{6} b^{3} + 6 \, a^{4} b^{5} - 4 \, a^{2} b^{7} + b^{9}\right )} d \cos \left (d x + c\right )^{3} \sin \left (d x + c\right ) + {\left (a^{9} - 4 \, a^{7} b^{2} + 6 \, a^{5} b^{4} - 4 \, a^{3} b^{6} + a b^{8}\right )} d \cos \left (d x + c\right )^{3}\right )}}, -\frac {a^{6} b - 3 \, a^{4} b^{3} + 3 \, a^{2} b^{5} - b^{7} + {\left (2 \, a^{6} b - 11 \, a^{4} b^{3} + a^{2} b^{5} + 8 \, b^{7}\right )} \cos \left (d x + c\right )^{4} - {\left (a^{6} b + 2 \, a^{4} b^{3} - 7 \, a^{2} b^{5} + 4 \, b^{7}\right )} \cos \left (d x + c\right )^{2} + 15 \, {\left (a b^{5} \cos \left (d x + c\right )^{3} \sin \left (d x + c\right ) + a^{2} b^{4} \cos \left (d x + c\right )^{3}\right )} \sqrt {a^{2} - b^{2}} \arctan \left (-\frac {a \sin \left (d x + c\right ) + b}{\sqrt {a^{2} - b^{2}} \cos \left (d x + c\right )}\right ) - {\left (a^{7} - 3 \, a^{5} b^{2} + 3 \, a^{3} b^{4} - a b^{6} + {\left (2 \, a^{7} - 11 \, a^{5} b^{2} + 16 \, a^{3} b^{4} - 7 \, a b^{6}\right )} \cos \left (d x + c\right )^{2}\right )} \sin \left (d x + c\right )}{3 \, {\left ({\left (a^{8} b - 4 \, a^{6} b^{3} + 6 \, a^{4} b^{5} - 4 \, a^{2} b^{7} + b^{9}\right )} d \cos \left (d x + c\right )^{3} \sin \left (d x + c\right ) + {\left (a^{9} - 4 \, a^{7} b^{2} + 6 \, a^{5} b^{4} - 4 \, a^{3} b^{6} + a b^{8}\right )} d \cos \left (d x + c\right )^{3}\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sec ^{4}{\left (c + d x \right )}}{\left (a + b \sin {\left (c + d x \right )}\right )^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 427 vs.
\(2 (184) = 368\).
time = 3.92, size = 427, normalized size = 2.21 \begin {gather*} \frac {2 \, {\left (\frac {15 \, {\left (\pi \left \lfloor \frac {d x + c}{2 \, \pi } + \frac {1}{2} \right \rfloor \mathrm {sgn}\left (a\right ) + \arctan \left (\frac {a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + b}{\sqrt {a^{2} - b^{2}}}\right )\right )} a b^{4}}{{\left (a^{6} - 3 \, a^{4} b^{2} + 3 \, a^{2} b^{4} - b^{6}\right )} \sqrt {a^{2} - b^{2}}} + \frac {3 \, {\left (b^{6} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + a b^{5}\right )}}{{\left (a^{7} - 3 \, a^{5} b^{2} + 3 \, a^{3} b^{4} - a b^{6}\right )} {\left (a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 2 \, b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + a\right )}} - \frac {3 \, a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} - 9 \, a^{2} b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} - 6 \, b^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} - 6 \, a^{3} b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} + 18 \, a b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} - 2 \, a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 18 \, a^{2} b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 8 \, b^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 24 \, a b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 3 \, a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 9 \, a^{2} b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 6 \, b^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 2 \, a^{3} b + 14 \, a b^{3}}{{\left (a^{6} - 3 \, a^{4} b^{2} + 3 \, a^{2} b^{4} - b^{6}\right )} {\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right )}^{3}}\right )}}{3 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 8.51, size = 727, normalized size = 3.77 \begin {gather*} \frac {\frac {2\,\left (-2\,a^4\,b+14\,a^2\,b^3+3\,b^5\right )}{3\,\left (a^6-3\,a^4\,b^2+3\,a^2\,b^4-b^6\right )}-\frac {10\,b^5\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6}{a^6-3\,a^4\,b^2+3\,a^2\,b^4-b^6}-\frac {2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2\,\left (-4\,a^4\,b+28\,a^2\,b^3+21\,b^5\right )}{3\,\left (a^6-3\,a^4\,b^2+3\,a^2\,b^4-b^6\right )}+\frac {2\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,\left (3\,a^6-13\,a^4\,b^2+22\,a^2\,b^4+3\,b^6\right )}{3\,a\,\left (a^6-3\,a^4\,b^2+3\,a^2\,b^4-b^6\right )}-\frac {2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7\,\left (-a^6+3\,a^4\,b^2+2\,a^2\,b^4+b^6\right )}{a\,\left (a^6-3\,a^4\,b^2+3\,a^2\,b^4-b^6\right )}+\frac {2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5\,\left (a^6-3\,a^4\,b^2+38\,a^2\,b^4+9\,b^6\right )}{3\,a\,\left (a^6-3\,a^4\,b^2+3\,a^2\,b^4-b^6\right )}+\frac {2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3\,\left (a^6+9\,a^4\,b^2-46\,a^2\,b^4-9\,b^6\right )}{3\,a\,\left (a^6-3\,a^4\,b^2+3\,a^2\,b^4-b^6\right )}+\frac {10\,b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4\,\left (-2\,a^4+6\,a^2\,b^2+5\,b^4\right )}{3\,\left (a^6-3\,a^4\,b^2+3\,a^2\,b^4-b^6\right )}}{d\,\left (-a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8-2\,b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7+2\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6+6\,b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5-6\,b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3-2\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+2\,b\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )+a\right )}+\frac {10\,a\,b^4\,\mathrm {atan}\left (\frac {\frac {5\,a\,b^4\,\left (2\,a^6\,b-6\,a^4\,b^3+6\,a^2\,b^5-2\,b^7\right )}{{\left (a+b\right )}^{7/2}\,{\left (a-b\right )}^{7/2}}+\frac {10\,a^2\,b^4\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,\left (a^6-3\,a^4\,b^2+3\,a^2\,b^4-b^6\right )}{{\left (a+b\right )}^{7/2}\,{\left (a-b\right )}^{7/2}}}{10\,a\,b^4}\right )}{d\,{\left (a+b\right )}^{7/2}\,{\left (a-b\right )}^{7/2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________